package dws_topic

import (
	"github.com/gin-gonic/gin"
	"server/middleware"
)

type DwsTopicRouter struct {
}


func (s *DwsTopicRouter) InitDwsTopicRouter(Router *gin.RouterGroup) {
	dwsTopicRouter := Router.Group("dwsTopic").Use(middleware.OperationRecord())
	dwsTopicRouterWithoutRecord := Router.Group("dwsTopic")
	var dwsTopicApi = DwsTopicApi{}
	{
		dwsTopicRouter.POST("createDwsTopic", dwsTopicApi.CreateDwsTopic)
		dwsTopicRouter.DELETE("deleteDwsTopic", dwsTopicApi.DeleteDwsTopic)
		dwsTopicRouter.DELETE("deleteDwsTopicByIds", dwsTopicApi.DeleteDwsTopicByIds)
		dwsTopicRouter.PUT("updateDwsTopic", dwsTopicApi.UpdateDwsTopic)
	}
	{
		dwsTopicRouterWithoutRecord.GET("findDwsTopic", dwsTopicApi.FindDwsTopic)
		dwsTopicRouterWithoutRecord.GET("getAllDwsTopics", dwsTopicApi.GetAllDwsTopics)
		dwsTopicRouterWithoutRecord.GET("getDwsTopicList", dwsTopicApi.GetDwsTopicList)
		dwsTopicRouterWithoutRecord.POST("getDwsTopic", dwsTopicApi.GetDwsTopic)
		dwsTopicRouterWithoutRecord.GET("initDwsTopic", dwsTopicApi.InitDwsTopic)
	}
}
